<?php
namespace app\admin\controller;
use think\Controller;
use think\Url;
use think\Session;

class Index extends Controller
{
    public function index()
    {
        $data = Session::get('a_name');
        //加载后台模板
        $this->assign([
            'title' => '后台主页',
            'data' => $data
        ]);
        // 加载模板
        return $this->fetch('admin/index');
    }
}
